<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	document.location	= res.data.forward;
}else{
	alert('出错了，请重新尝试！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="form" action="{url('Help','SaveEdit')}" method="post">
<h3 class="title">{if $this->data['id']>0}修改{else}添加{/if}公告</h3>
<table width="95%" cellspacing="1" cellpadding="2" border="0" class="admin-table">
	<tr>
		<td class="list_text in">标题</td>
		<td class="list_input">
		<input name="title" id="title" type="text" size="50" {if $this->data['help']}value="{$this->data['help']['title']}"{/if} /><span etype='error_info' class="error_info" id="title_info"></span>
		</td>
	</tr>
	<tr>
		<td class="list_text in">内容</td>
		<td class="list_input">
		<textarea name="content" id="txtcontent" style="width:500px;height:300px">
		{if $this->data['help']}{$this->data['help']['content']}{/if}
		</textarea>
		<br /><span etype='error_info' class="error_info" id="content_info"></spa
		</td>
	</tr>
	<tr>
		<td class="list_text in"></td>
		<td class="list_input">
		<input id="btnAjaxSubmit" type="submit" value="保存" />&nbsp;&nbsp;<input  type="button" value="返回" onclick="history.back()" />
		<input name="id" type="hidden" value="{$this->data['id']}" />
		</td>
	</tr>
</table>
</form>
</div>
<script src="{$this->data['baseurl']}js/editor/kindeditor/kindeditor.js"></script>
<script>
KE.show({
id : 'txtcontent',
allowUpload : false
});
</script>